package com.xinzhi.savingpot.userinfo.entity;



import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class UserInfo {
    private Integer userId;
    private Integer userNumber;
    private String userNickName;
    private Integer userSex;
    private String newUserSex;
    private String userHeadPhoto;
    private Integer partId;
    private String phone;
    private String password;
    private BigDecimal earnestMoney;
    private BigDecimal balance;
    private Integer shoppoints;
    private Integer fkmebers;

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        if (userSex == 0) {
            newUserSex = "女";
        } else if(userSex == 1){
            newUserSex = "男";
        }
    }

    public String getNewUserSex() {
        return newUserSex;
    }

    public void setNewUserSex(String newUserSex) {
        if (newUserSex.equals("男")) {
            userSex = 1;
        } else if (newUserSex.equals("女")) {
            userSex = 0;
        }
    }

}
